package com.community.community.pojo.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.util.List;

@Data
@TableName("good") // 指定表名
public class Good {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String title;

    private String description;

    //1为出售 2为出租
    private Integer type;

    @Min(7)
    private Integer rentDay;

    private Double price;

    private Integer likeCount;

    private Double score;

    private String images;

    @TableField(exist = false)
    private List<String> imageUrls;


}

